﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ERPMVC.Models.contasapagar>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Detalhes
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Detalhes</h2>

    <fieldset>
        <legend>Campos</legend>
        
        <div class="display-label">documento</div>
        <div class="display-field"><%= Html.Encode(Model.documento) %></div>
        
        <div class="display-label">favorecido</div>
        <div class="display-field"><%= Html.Encode(Model.favorecido) %></div>
        
        <div class="display-label">descricao</div>
        <div class="display-field"><%= Html.Encode(Model.descricao) %></div>
        
        <div class="display-label">titulo</div>
        <div class="display-field"><%= Html.Encode(Model.titulo) %></div>
        
        <div class="display-label">multa</div>
        <div class="display-field"><%= Html.Encode(String.Format("{0:F}", Model.multa)) %></div>
        
        <div class="display-label">juros</div>
        <div class="display-field"><%= Html.Encode(String.Format("{0:F}", Model.juros)) %></div>
        
        <div class="display-label">vencimento</div>
        <div class="display-field"><%= Html.Encode(String.Format("{0:g}", Model.vencimento)) %></div>
        
        <div class="display-label" style="font-weight:bold">Pago</div>
        <div class="display-field"> <% if((bool)Model.Pago == true){ %>
                Sim 
                <% }else{%>
                Não
                <%} %></div>
                
        <div class="display-label">conta</div>
        <div class="display-field"><%= Html.Encode(Model.ContaBancaria) %></div>
        
        <div class="display-label">ContaID</div>
        <div class="display-field"><%= Html.Encode(Model.ContaID) %></div>
        
    </fieldset>
    <p>

        <%= Html.ActionLink("Editar", "Edit", new { id=Model.ContaID }) %> |
        <%= Html.ActionLink("Voltar", "Index") %>
    </p>

</asp:Content>

